    <div id="TopContainer">
        <div id="header">
            <div id="logo">
	          	<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="180" height="80">
	          	  <param name="movie" value="media/logo.swf">
	          	  <param name="quality" value="high">
	          	  <param name="wmode" value="transparent">
	          	  <param name="swfversion" value="8.0.35.0">
	          	  <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
	          	  <param name="expressinstall" value="Scripts/expressInstall.swf">
	          	  <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
	          	  <!--[if !IE]>-->
	          	  <object type="application/x-shockwave-flash" data="media/logo.swf" width="180" height="80">
	          	    <!--<![endif]-->
	          	    <param name="quality" value="high">
	          	    <param name="wmode" value="transparent">
	          	    <param name="swfversion" value="8.0.35.0">
	          	    <param name="expressinstall" value="Scripts/expressInstall.swf">
	          	    <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
	          	    <div>
	          	      <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
	          	      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
	       	        </div>
	          	    <!--[if !IE]>-->
	       	      </object>
	          	  <!--<![endif]-->
	       	    </object>
            </div>
            <img id="ProductName" alt="瑞邦晟达科技（北京）有限公司" src="images/ProductName.gif">
	        <!-- <div>瑞邦晟达科技（北京）有限公司</div> -->
	        <div id="Top">
	        	<a id="CompanyEmail" href="http://mail.boncontact.com/" target="_blank">企业邮箱</a>
	        	<span> | </span>
	        	<a href="javascript:void(0)" onclick="SetHome(this);">设为首页</a>
	        	<span> | </span>
	        	<a href="javascript:void(0)" onclick="AddFavorite();">加入收藏</a>
	        </div>
	    </div>
            <div id="nav">
                <!-- <img src="images/nav_l.png" class="fl"  /> -->
                <ul>
                	<?php 
                		FirstNav();
                	    function FirstNav()
                	    {
                	    	$currentID = 1;
                	    	if(isset($_GET['pid'])){
								$currentID=$_GET['pid'];
							}
                	    	include_once 'mysqldb/MySqlHelper.php';
                	    	$MySqlHelper = new MySqlHelper();
                	    	$rows = $MySqlHelper->GetRows('select ID,NavName,NavigateUrl,PID from NavTree where Status = 1 order by OrderID,ID asc');
                	    	$count=$rows->num_rows;
                	    	while ($row=$rows->fetch_array())
                	    	{
                	    		$arr[]=$row;
                	    	}
                	    	for($i=0;$i<$count;$i++){
								if($arr[$i]['PID']==0){
									echo '<li';
									echo $currentID===$arr[$i]['ID']?' class="Selected"':'';
									echo '><a';
									echo $currentID===$arr[$i]['ID']?' class="Selected"':'';
									echo ' href="'.$arr[$i]['NavigateUrl'].'pid='.$arr[$i]['ID'].'&nid='.$arr[$i]['ID'].'">'.$arr[$i]['NavName'].'</a>';
									SecNav($arr,$count, $arr[$i]['ID']);
									echo '</li>';
								}              	    		
                	    	}
                	    }
                	    function SecNav($arr,$count,$PID){
                	    	$secNav='';
                	    	for ($j=0;$j<$count;$j++){
                	    		if($arr[$j]['PID']==$PID){
                	    			$secNav=$secNav.'<a href="'.$arr[$j]['NavigateUrl'].'pid='.$PID.'&nid='.$arr[$j]['ID'].'">'.$arr[$j]['NavName'].'</a>';
                	    		}
                	    	}
                	    	if (strlen($secNav)>0) {
								echo '<img src="images/arrow_t.gif"  class="po1" />';
								echo '<div class="introduce po2" >';
								echo '<img src="images/';
								echo file_exists(dirname(__FILE__) . '/images/nav_pic_'.$PID).'.jpg'?'nav_pic_'.$PID:"nav_pic";
								//echo dirname(__FILE__) . '/images/nav_pic_'.$_GET['pid'];
								echo '.jpg"  />';
								echo $secNav;
								echo '</div>';
                	    	}
                	    }
                	?>
                </ul>
                <!-- <img src="images/nav_r.png" class="fl"  /> -->
            </div>
    </div>
